<template>
  <div class="search">
    <el-autocomplete
      :trigger-on-focus="false"
      clearable
      placeholder="请你输入医院名称"
    />
    <el-button type="primary" size="default" :icon="Search">搜索</el-button>
  </div>
</template>

<script setup lang="ts">
// 引入element-plus提供图标
import { Search } from "@element-plus/icons-vue";

// 深度选择器: 1. 原生css使用： >>> ; 2. less中使用：/deep/ ; 3. scss中使用 ::v-deep

</script>
<script lang="ts">
export default {
  name: "Search",
};
</script>
<style scoped lang="scss">
.search {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0px;

  ::v-deep(.el-autocomplete) {
    width: 600px;
    margin-right: 10px;
  }
}
</style>
